import requests
url='http://ihrm2-test.itheima.net/api/sys/user'
headers={
    "Content-Type":"application/json",
    "Authorization":"8f5ca730-fba8-475c-9103-bbee933d9542"
}
json={
    "username":"小美",
    "mobile":"17740652911",
    "workNumber":"10086"
}
r =requests.post(url,headers=headers,json=json)
print(r.status_code)
print(r.json())

url='http://ihrm2-test.itheima.net/api/sys/user/1571850328519749632'
headers={
    "Content-Type":"application/json",
    "Authorization":"8f5ca730-fba8-475c-9103-bbee933d9542"
}
json={
    "username":"小丑"
}
r =requests.put(url,headers=headers,json=json)
print(r.status_code)
print(r.json())
